<!DOCTYPE html>
<html>
	<head>
		<meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>
		<title>用户组管理 -- Powered by CentIMS {$core_version}</title>
		<link href="{'bootstrap/css/bootstrap.css'|shared}" rel="stylesheet"/>
		<link href="{'bootstrap/css/bootstrap-responsive.css'|shared}" rel="stylesheet"/>
		<link href="{'common.css'|shared}" rel="stylesheet"/>
		{'group_list_head'|fire}
	</head>
	<body>
		<div class="workspace">
			<ul class="nav nav-tabs">
				<li>&nbsp;&nbsp;</li>	
			    <li class="active"><a href="#"><i class="icon-list-alt"></i>组列表</a></li>
			    <li><a href="./?Ctlr=AddGroup"><i class="icon-plus"></i>新增组</a></li>
		    </ul>
		    
		    <div>
				<form class="well form-inline" method="get" action=".">
				    <input type="text" class="input-small" name="gid" value="{$gid}" placeholder="GID">
				    <input type="text" class="input-medium" name="gname" value="{$uname}" placeholder="组标识">
				    <input type="text" class="input-small" name="name" value="{$name}" placeholder="组名">
				    {html_options name=type options=$group_types selected=$type}
				    <button type="submit" class="btn">搜索</button>
			    </form>
		    </div>
		    
		    <table id="group-list" class="table table-striped table-bordered table-condensed">
				<thead>
					<tr>
						<th class="col_chk"><input type="checkbox"/></th>
						<th class="w50 txt-ac">{'GID'|sorth:gid:$curl}</th>
						<th class="w100">{'组标识'|sorth:gname:$curl}</th>
						<th class="w200">{'组名'|sorth:name:$curl}</th>
						<th class="w80">{'组类别'|sorth:type:$curl}</th>
						<th class="w50">内置组</th>	
						<th class="wa">备注</th>					
						<th class="w150 txt-ac">操作</th>
					</tr>
				</thead>
				<tbody>
					{foreach from=$items item=item}
					<tr>
						<td class="col_chk"><input type="checkbox" value="{$item.gid}"/></td>
						<td class="txt-ac">{$item.gid}</td>
						<td>{$item.gname}</td>
						<td>{$item.name}</td>
						<td>{$item.type|status:$group_types}</td>
						<td class="txt-ac">{$item.reserved|status:$reserves}</td>
						<td>{$item.note|escape}</td>
						<td class="tools">{'get_group_options'|fire:$item}</td>
					</tr>
					{foreachelse}
					<tr>
						<td colspan="8" class="txt-ac">无记录</td>						
					</tr>
					{/foreach}
				</tbody>
			</table>
			<div class="form-horizontal">
				<div class="control-group pull-left">
					<div class="btn-group">
						<button class="btn" id="btn-selectall" href="#"><i class="icon-check"></i>全选/反选</button>
			          	<a class="btn dropdown-toggle" data-toggle="dropdown" href="#"><span class="caret"></span></a>
			          	<ul class="dropdown-menu">			            
			            	{'get_group_bench_options'|fire}			            		            
			          	</ul>
			    	</div>
				</div>
				<div class="pagination pull-right">
					{$curl|paging:$countTotal:$limit:'start'}
			    </div>
		    </div>				    	
		</div>
		<script type="text/javascript" src="{'jquery-1.7.1.js'|jquery}"></script>
		<script type="text/javascript" src="{'bootstrap/bootstrap.js'|shared}"></script>
		<script type="text/javascript" src="{'common.js'|shared}"></script>
		<script type="text/javascript" src="list.js"></script>		
		{'group_list_foot'|fire}
	</body>
</html>